<extend name="Public:common" />
<block name="content">
    <!--/sidebar-->
    <div class="main-wrap">

        <div class="crumb-wrap">
            <div class="crumb-list"><i class="icon-font"></i><a href="/Admin">首页</a><span class="crumb-step">&gt;</span><span class="crumb-name">公示管理</span></div>
        </div>

        <div class="result-wrap">

                <div class="result-content">
                                      <table class="result-tab" width="100%">
                        <tr>
                            <th>ID</th>
                            <th>申请名称</th>
                            <th>发起人</th>
                            <th>发起人身份证</th>
                            <th>保护人</th>
                            <th>保护人身份证</th>
                            <th>描述</th>
                            <th>当前状态</th>
                            <th>类型</th>
                            <th>公示状态</th>
                            <th>创建时间</th>
                            <th>操作</th>

                        </tr>
                        <foreach name="Uarr" item="vo">
                        <tr>
                        <td>{$vo.sid}</td>
                        <td>{$vo.sname}</td>
                        <td>{$vo.fuser}</td>
                        <td>{$vo.fcardid}</td>
                        <td>{$vo.buser}</td>
                        <td>{$vo.bcardid}</td>
                        <td>{$vo.miaoshu}</td>
                        <if condition="($vo.status eq 0)"> <td>未通过</td>
                        <else /> <td>通过</td>
                        </if>

                        <if condition="($vo.stype eq 0)"> <td>计划</td>
                        <else /> <td>活动</td>
                        </if>
 

                        <if condition="$vo.stus eq 0"> <td>等待筹款</td>
                        <elseif condition="$vo.stus eq 1"/><td>发起筹款</td>
                        <else /> <td>提前结束</td>
                        </if>

                        <td>{$vo.createtime}111</td>
                        <td>
                        <a class="link-update" href="{:U('Admin/Gongshi/shenhe/id/'.$vo['sid'])}">审核</a>
                            <if condition="$vo.stus eq 0"> 
                               <a href="javascript:update({$vo['sid']},1)">发起筹款</a>
                                <elseif condition="$vo.stus eq 1"/>
                                <a href="javascript:update({$vo['sid']},2)">提前结束</a>
                                <else /> 
                                <a href="javascript:update({$vo['sid']},1)">重新筹款</a>
                            </if>
                            <a class="link-del" href="javascript:del({$vo['sid']})">删除</a>
                        </td>
                    </tr>
                    </foreach>
                </table>

                  <?php foreach ($arr['photos'] as $item): ?>
                    <img src="http://fleah.com<?=$item['photos']?>" alt="" width="280px" height="150px">
                    <?php endforeach; ?>   
                  </div>
                </div>
                <form name="shen" id="myform" action="" method="post">
              操作 <div>
                        <input  type="radio" name="shen" value="2" placeholder=""><span>审核通过/在售</span>
                        <input  type="radio" name="shen" value="7" placeholder=""><span>审核不通过</span>
                        <input  type="radio" name="shen" value="4" placeholder=""><span>下架</span>
                        <input  type="radio" name="shen" value="1" placeholder=""><span>上架</span>
                        <input  type="radio" name="shen" value="8" placeholder=""><span>查封</span>
                        <input type="hidden" name="usd" value="<?php echo $arr['gid']?>">
                </div>
                <div>
                
                         
                        <?php if (empty($arr['beacause'])): ?>
                         <textarea name="yuan" style="width: 500px;height: 100px"placeholder="下架 不通过 查封原因"> 下架 不通过 查封原因</textarea>
                        <?php else: ?>

                        <textarea name="yuan" style="width: 500px;height: 100px"placeholder="下架 不通过 查封原因">  <?php echo $arr['beacause']; ?>  </textarea>
                        <?php endif; ?>
                   
                </div>
                <input type="button" name="" value="返回">
                <input type="submit" name="" value="确定">
            </form>
        </div>
    </div>
    <!--/main-->
    </block>